Termination w.r.t. Q of the following Term Rewriting System could be proven:
Q restricted rewrite system:
The TRS R consists of the following rules:
rev(ls) → r1(ls, empty)
r1(empty, a) → a
r1(cons(x, k), a) → r1(k, cons(x, a))
Q is empty.
↳ QTRS
↳ DirectTerminationProof
Q restricted rewrite system:
The TRS R consists of the following rules:
rev(ls) → r1(ls, empty)
r1(empty, a) → a
r1(cons(x, k), a) → r1(k, cons(x, a))
Q is empty.
We use [23] with the following order to prove termination.
Recursive path order with status [2].
Precedence:
rev1 > r12 > cons2
rev1 > empty > cons2
Status:
rev1: multiset
empty: multiset
cons2: multiset
r12: [1,2]